import java.util.UUID;
import com.gmongo.GMongo
import com.db.Config;
def mongo = new GMongo(Config.dbip,Config.dbport)
def db = mongo.getDB(Config.dbname)
def  message =[
		user:request.getParameter('user'), 
		name:request.getParameter('name'),
		psw:request.getParameter('psw'), 
		type:request.getParameter('type'),
		key:UUID.randomUUID().toString()
		]
println message+[state:1]
db.(Config.SENDER_EMAIL_MESSAGE).insert(message)